package com.tiger.project.service.impl;

import com.tiger.project.domain.AssetRegionalDivision;
import com.tiger.project.mapper.AssetRegionalDivisionMapper;
import com.tiger.project.service.IAssetRegionalDivisionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 【资产列表面积划分】Service业务层处理
 *
 * @author standard
 * @date 2022-09-15
 */
@Service
public class AssetRegionalDivisionServiceImpl implements IAssetRegionalDivisionService {
    @Autowired
    private AssetRegionalDivisionMapper assetRegionalDivisionMapper;

    /**
     * 查询【资产列表面积划分】
     *
     * @param id 【资产列表面积划分】主键
     * @return 【资产列表面积划分】
     */
    @Override
    public AssetRegionalDivision selectAssetRegionalDivisionById(Long id) {
        return assetRegionalDivisionMapper.selectAssetRegionalDivisionById(id);
    }

    /**
     * 查询【资产列表面积划分】列表
     *
     * @param assetRegionalDivision 【资产列表面积划分】
     * @return 【资产列表面积划分】
     */
    @Override
    public List<AssetRegionalDivision> selectAssetRegionalDivisionList(AssetRegionalDivision assetRegionalDivision) {
        return assetRegionalDivisionMapper.selectAssetRegionalDivisionList(assetRegionalDivision);
    }

    /**
     * 新增【资产列表面积划分】
     *
     * @param assetRegionalDivision 【资产列表面积划分】
     * @return 结果
     */
    @Override
    public int insertAssetRegionalDivision(AssetRegionalDivision assetRegionalDivision) {
        return assetRegionalDivisionMapper.insertAssetRegionalDivision(assetRegionalDivision);
    }

    /**
     * 修改【资产列表面积划分】
     *
     * @param assetRegionalDivision 【资产列表面积划分】
     * @return 结果
     */
    @Override
    public int updateAssetRegionalDivision(AssetRegionalDivision assetRegionalDivision) {
        return assetRegionalDivisionMapper.updateAssetRegionalDivision(assetRegionalDivision);
    }

    /**
     * 批量删除【资产列表面积划分】
     *
     * @param ids 需要删除的【资产列表面积划分】主键
     * @return 结果
     */
    @Override
    public int deleteAssetRegionalDivisionByIds(Long[] ids) {
        return assetRegionalDivisionMapper.deleteAssetRegionalDivisionByIds(ids);
    }

    /**
     * 删除【资产列表面积划分】信息
     *
     * @param id 【资产列表面积划分】主键
     * @return 结果
     */
    @Override
    public int deleteAssetRegionalDivisionById(Long id) {
        return assetRegionalDivisionMapper.deleteAssetRegionalDivisionById(id);
    }

}
